package com.lagou.product.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/server")
public class ServiceInfoController {

        @Value("${server.port}")
        private String serverPort;

        @GetMapping("/query")
        public String findServerPort(){
//            try {
////                Thread.sleep(10000);
////            } catch (InterruptedException e) {
////                e.printStackTrace();
////            }
            return serverPort;
        }


    }
